package com.msh.platform.elm.service.impl;

import com.msh.platform.elm.dao.CfgMessageRepository;
import com.msh.platform.elm.entity.CfgMessage;
import com.msh.platform.elm.service.CfgMessageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Service;

@Service
public class CfgMessageServiceImpl implements CfgMessageService {

    @Autowired
    private CfgMessageRepository cfgMessageRepository;
    
    public Page<CfgMessage> findByUserId(int userId,Pageable pageable){
    	return cfgMessageRepository.findByUserId(userId, pageable);
    }

}
